random python range

27

from random import randrange
print(randrange(10))
import random

print("Generating 3 random integer number between 100 and 999 divisible by 5")
for num in range(3):
    print(random.randrange(100, 999, 5), end=', ')
# Generates a random number between i and j
a = random.randrange(i, j)

Comments

Submit
0 Comments